package com.demo.RemoteCall;

import com.demo.RemoteCall.FallBack.TaskManageFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.LinkedHashMap;

/**
 * @author 李天航
 * 调用计算结点进行活动安排
 */
@FeignClient(value = "task-manager", fallbackFactory = TaskManageFallBackFactory.class)
public interface TaskManageRemoteCallService {
    /**
     * 远程过程调用
     *
     * @param params 固定活动表，和任务列表
     * @return msg,status,results
     */

    @PostMapping("/task/manage")
    LinkedHashMap<String, Object> taskManage(LinkedHashMap<String, Object> params);
}
